package cn.sdxx.qddata.service.impl;


import cn.sdxx.qddata.entity.Joke;
import cn.sdxx.qddata.mapper.JokeMapper;
import cn.sdxx.qddata.service.JokeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JokeServiceImpl extends ServiceImpl<JokeMapper, Joke> implements JokeService {

    @Autowired
    private JokeMapper jokeMapper;

    @Override
    public List<Joke> getJokesRandom(Integer num) {
        return jokeMapper.getJokesRandom(num);
    }
}
